package com.gopay.common.cps.dao.cbrmb.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.cbrmb.CbrmbOrderForceUpdateDAO;
import com.gopay.common.domain.cbrmb.draw.CbrmbOrderForceUpdate;

@Repository("cbrmbOrderForceUpdateDAO")
public class CbrmbOrderForceUpdateDAOImpl extends BaseDAOImpl<CbrmbOrderForceUpdate, Long> implements CbrmbOrderForceUpdateDAO {

    @SuppressWarnings("unchecked")
    @Override
    public List<CbrmbOrderForceUpdate> selectByGopayOrderId(String gopayOrderId) throws Exception {
        String hql = "from CbrmbOrderForceUpdate where gopayMainOrderId = :gopayOrderId";
        return super.hibernateTemplate.findByNamedParam(hql, "gopayOrderId", gopayOrderId);
    }

}
